import request from '@/utils/request'

// 查询课题进度列表
export function listMyProgress(query) {
  return request({
    url: '/subject/progress/my',
    method: 'get',
    params: query
  })
}


// 查询课题进度列表
export function listProgress(query) {
  return request({
    url: '/subject/progress/list',
    method: 'get',
    params: query
  })
}

// 查询课题进度详细
export function getProgress(id) {
  return request({
    url: '/subject/progress/' + id,
    method: 'get'
  })
}

// 新增课题进度
export function addProgress(data) {
  return request({
    url: '/subject/progress',
    method: 'post',
    data: data
  })
}

// 修改课题进度
export function updateProgress(data) {
  return request({
    url: '/subject/progress',
    method: 'put',
    data: data
  })
}

// 删除课题进度
export function delProgress(id) {
  return request({
    url: '/subject/progress/' + id,
    method: 'delete'
  })
}

// 导出课题进度
export function exportProgress(query) {
  return request({
    url: '/subject/progress/export',
    method: 'get',
    params: query
  })
}